package ca.qc.bdeb.info.pp2.tp2.application;

import java.sql.Blob;

public class ImageProprietePrincipale
{
    private int id;
    private Blob imageAlbum;
    private String mimeType;

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public Blob getImageAlbum()
    {
        return imageAlbum;
    }

    public void setImageAlbum(Blob imageAlbum)
    {
        this.imageAlbum = imageAlbum;
    }

    public String getMimeType()
    {
        return mimeType;
    }

    public void setMimeType(String mimeType)
    {
        this.mimeType = mimeType;
    }

    public ImageProprieteBean getImageProprieteBean()
    {
        ImageProprieteBean i = new ImageProprieteBean();
        i.setId(id);
        i.setImageAlbum(imageAlbum);
        i.setMimeType(mimeType);
        i.setIdHabitation(-1);

        return i;
    }
}
